package com.poobo.util.message;

import java.util.HashMap;
import java.util.Map;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class AjaxResult extends HashMap<String, Object>{
	
	
	private static final long serialVersionUID = -358727393719413318L;

	
	private String message;
	private boolean status;
	private String callback;
	private Map<String, Object> ResultObj;
	
	
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		super.put("message", message);
	}

	public void setStatus(boolean status) {
		super.put("status", status);
	}
	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		super.put("callback", callback);
	}

	public boolean isStatus() {
		return status;
	}

	/**
	 * 自定义key，value的响应对象
	 * 
	 * @param key
	 * @param obj
	 */
	public void setResultObj(String key, Object obj) {
		super.put(key, obj);
	}
	
	public Map<String, Object> getResultObj() {
		return ResultObj;
	}
}
